const rules = {
  parentId: [
    {
      required: true,
      message: '请选择上级菜单',
      trigger: 'change'
    }
  ],
  title: [
    {
      required: true,
      message: '请输入菜单标题',
      trigger: 'blur'
    }
  ],
  subTitle: [],
  iconUrl: [
    {
      required: true,
      message: '请输入图标类名',
      trigger: 'blur'
    }
  ],
  linkName: [
    {
      required: true,
      message: '请输入路由名称',
      trigger: 'blur'
    }
  ],
  linkUrl: [
    {
      required: true,
      message: '请输入路由地址',
      trigger: 'blur'
    }
  ],
  isMenu: [
    {
      required: true,
      message: '是否是菜单不能为空',
      trigger: 'change'
    }
  ],
  hasChildren: [
    {
      required: true,
      message: '是否有下级不能为空',
      trigger: 'change'
    }
  ],
  status: [
    {
      required: true,
      message: '是否启用不能为空',
      trigger: 'change'
    }
  ]
}

export default rules
